import http from "@/http";
import { Category,CategoryListParm } from "./CategoryModel";
//新增
export const addCategoryApi = (parm:Category)=>{
return http.post("/api/goodskind/add",parm)
}
//列表
export const listApi = (parm:CategoryListParm)=>{
return http.get("/api/goodskind/list",parm)
}
//编辑
export const editCategoryApi = (parm:Category)=>{
return http.put("/api/goodskind/edit",parm)
}
//删除
export const deleteCategoryApi = (parm:Category)=>{
return http.delete(`/api/goodskind/delete/${parm.id}`)
}